/*
 * cli-command.h
 *
 *  Created on: 2021��6��17��
 *      Author: Administrator
 */

#ifndef SRC_FREERTOS_PLUS_CLI_CLI_COMMAND_H_
#define SRC_FREERTOS_PLUS_CLI_CLI_COMMAND_H_


#include "../utility.h"
#include "../spi/configure_device.h"
#include "../i2c/i2c_driver.h"
#include "../mdio/mdio.h"

unsigned int stringToDecimalInt(char* ret);
unsigned int stringToInt(char* ret);

void cli_show(char *pcWriteBuffer);
int cli_spi_cmd(u32 data, u32 slave_mask, u8 *rx_data);

void set_gpio_value(u32 value, u32 address);


u32 valid_address(u32 address);

#endif /* SRC_FREERTOS_PLUS_CLI_CLI_COMMAND_H_ */
